package dispatcher.group.gui.listener;

import java.awt.event.ActionEvent;
import java.util.Set;

/**
 * This class encapsulate the event where the elevator gets initialized and populate for the first time
 * @author Caleb
 *
 */
public class ElevatorInitializeEvent extends ActionEvent{

	/**
	 * 
	 */
	private static final long serialVersionUID = 8940608232090741832L;
	private Set<Byte> elevatorIds;
	
	/**
	 * The main constructor
	 * @param source The source of the event
	 * @param elevatorIds The list of elevators that are to be initialized and populate
	 */
	public ElevatorInitializeEvent(Object source, Set<Byte> elevatorIds) {
		super(source, 0, "");
		
		this.elevatorIds = elevatorIds;
	}

	/**
	 * This method returns the list of elevators that are to be initialized and populate
	 * @return Returns the list of elevators that are to be initialized and populate
	 */
	public Set<Byte> getElevatorIds(){
		return this.elevatorIds;
	}
	
	
}
